package bb.lanxing.model.json.club;

import com.garmin.fit.MonitoringReader;
import com.google.gson.annotations.SerializedName;

import java.util.List;

import bb.lanxing.model.json.ClubMedalSmall;
import bb.lanxing.model.json.UserAvatarMedal;


public class NewsMonthly implements NewsContent {
    @SerializedName("bronze_medal_pic")
    String bronzeMedalPic;
    @SerializedName("bronze_medals")
    int bronzeMedals;
    @SerializedName("city_id")
    long cityId;
    @SerializedName("city_name")
    String cityName;
    @SerializedName("city_rank")
    int cityRank;
    @SerializedName("country_rank")
    int countryRank;
    @SerializedName(MonitoringReader.DISTANCE_STRING)
    int distance;
    @SerializedName("gold_medal_pic")
    String goldMedalPic;
    @SerializedName("gold_medals")
    int goldMedals;
    @SerializedName("honor_cups")
    HonorRecord honorRecord;
    @SerializedName("hot")
    int hot;
    @SerializedName("hot_rank")
    List<HotRank> hotRanks;
    @SerializedName("medal_small")
    List<ClubMedalSmall> medals;
    int month;
    @SerializedName("silver_medal_pic")
    String silverMedalPic;
    @SerializedName("silver_medals")
    int silverMedals;
    @SerializedName("title")
    String title;

    public String getTitle() {
        return this.title;
    }

    public int getHot() {
        return this.hot;
    }

    public List<HotRank> getHotRanks() {
        return this.hotRanks;
    }

    public HonorRecord getHonorRecord() {
        return this.honorRecord;
    }

    public int getDistance() {
        return this.distance;
    }

    public long getCityId() {
        return this.cityId;
    }

    public int getCityRank() {
        return this.cityRank;
    }

    public int getCountryRank() {
        return this.countryRank;
    }

    public int getGoldMedals() {
        return this.goldMedals;
    }

    public int getSilverMedals() {
        return this.silverMedals;
    }

    public int getBronzeMedals() {
        return this.bronzeMedals;
    }

    public String getGoldMedalPic() {
        return this.goldMedalPic;
    }

    public String getSilverMedalPic() {
        return this.silverMedalPic;
    }

    public String getBronzeMedalPic() {
        return this.bronzeMedalPic;
    }

    public int getMonth() {
        return this.month;
    }

    public String getCityName() {
        return this.cityName;
    }

    public List<ClubMedalSmall> getMedals() {
        return this.medals;
    }

    public static class HonorRecord {
        @SerializedName("honor_record")
        private List<CupItem> cupItems;
        @SerializedName("month_cups")
        private int cups;

        public int getCups() {
            return this.cups;
        }

        public List<CupItem> getCupItems() {
            return this.cupItems;
        }
    }

    public static class CupItem {
        private int cups;
        private String title;

        public String getTitle() {
            return this.title;
        }

        public int getCups() {
            return this.cups;
        }
    }

    public static class HotRank {
        @SerializedName("hot")
        int hots;
        private String medals;
        @SerializedName("medal_small")
        private List<UserAvatarMedal> userAvatarMedals;
        @SerializedName("user_id")
        long userId;
        @SerializedName("ulevel")
        int userLevel;
        @SerializedName("user_name")
        String userName;
        @SerializedName("user_pic")
        String userPic;

        public int getUserLevel() {
            return this.userLevel;
        }

        public void setUserLevel(int i) {
            this.userLevel = i;
        }

        public String getMedals() {
            if (this.userAvatarMedals != null) {
                String str = "";
                for (int i = 0; i < this.userAvatarMedals.size(); i++) {
                    str = i == this.userAvatarMedals.size() - 1 ? str + this.userAvatarMedals.get(i).getUrl() : str + this.userAvatarMedals.get(i).getUrl() + ";";
                }
                setMedals(str);
            } else {
                setMedals(null);
            }
            return this.medals;
        }

        public void setMedals(String str) {
            this.medals = str;
        }

        public List<UserAvatarMedal> getUserAvatarMedals() {
            return this.userAvatarMedals;
        }

        public void setUserAvatarMedals(List<UserAvatarMedal> list) {
            this.userAvatarMedals = list;
        }

        public long getUserId() {
            return this.userId;
        }

        public void setUserId(long j) {
            this.userId = j;
        }

        public String getUserName() {
            return this.userName;
        }

        public void setUserName(String str) {
            this.userName = str;
        }

        public String getUserPic() {
            return this.userPic;
        }

        public void setUserPic(String str) {
            this.userPic = str;
        }

        public int getHots() {
            return this.hots;
        }

        public void setHots(int i) {
            this.hots = i;
        }
    }
}
